package cn.smbms.service.provider;

import cn.smbms.dao.provider.ProviderMapper;
import cn.smbms.pojo.Provider;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProviderServiceImpl implements ProviderService{

    @Resource
    private ProviderMapper providerMapper;
    @Override
    public List<Provider> getProviderList(String proCode, String proName, int currentPageNo, int pageSize) {
        return providerMapper.getProviderList(proCode,proName,currentPageNo,pageSize);
    }

    @Override
    public int getProviderCount() {
        return providerMapper.getProviderCount();
    }
}
